/**
 * 代表运算符的类
 */
package math;

public class MathMode {
    public enum MathModeEnum {
        /**
         * 分别为加减乘除
         */
        Addition,
        Subtraction,
        Multiplication,
        Division
    }

    //所包含的运算符
    private MathModeEnum mode;
    //所代表的符号
    private String sign;
    //所拥有的优先级
    private int priority;

    protected MathMode(MathModeEnum mode, String sign, int priority) {
        this.mode = mode;
        this.sign = sign;
        this.priority = priority;
    }

    public MathModeEnum getMode() {
        return mode;
    }

    public String getSign() {
        return sign;
    }

    public int getPriority() {
        return priority;
    }
}
